<?php
namespace app\admin\model;
use think\Model;
class User extends Model{
	protected $table="duck_member_user";
	public function getSexAttr($value){
		$sex=[
		   0=>'男',
		   1=>'女'
		];
		return $sex[$value]; 
	}
	public function getStatusAttr($value){
		$status=[
		   1=>'顾客',
		   2=>'服务员',
		   3=>'厨师'
		];
		return $status[$value];
	}
	public function selshop(){
		return $this->hasOne('ShopList','id','shop_id');
	}
}

?>